package cate.game.pvp.guildwar.data.msg;

import cate.game.pvp.guildwar.data.GuildWar;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("公会战-一方数据请求")
public class GWSideApplyInnerReq {

	@NoteField("申请的区服id")
	public int srvId;

	@NoteField("申请的公会id")
	public String guildUid;

	@NoteField("目标区服id")
	public int tarSrvId;

	@NoteField("目标公会id")
	public String tarGuildUid;


	public static GWSideApplyInnerReq of(GuildWar war) {
		GWSideApplyInnerReq data = new GWSideApplyInnerReq();
		data.srvId = war.field.a.profile.srvId;
		data.guildUid = war.field.a.profile.uid;
		data.tarSrvId = war.field.b.profile.srvId;
		data.tarGuildUid = war.field.b.profile.uid;
		return data;
	}


}
